home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 March / macformat-022.iso / Shareware City / Developers / MW MPW Binaries 1.1.1a2 / mwcPPC / MWCExamples / Count ƒ / Count.Make < prev    next >
Encoding:
Text File  |  1994-09-28  |  1.7 KB  |  64 lines  |  [TEXT/MPS ]

  1. #    File MakeFile -  Make instructions for C examples.
  2. #
  3. #    Copyright Apple Computer, Inc. 1986-1994
  4. #    All rights reserved.
  5. #
  6. #    This makefile builds:
  7. #        The sample C tool:                Count
  8.  
  9. #     You can define {SymOptions} as "-sym on" or "-sym off" for use with SADE
  10. #     We also recommend requiring prototypes for all functions
  11.  
  12. VERSION    = 3.4d2
  13. OBJECTS = Count.c.o
  14.  
  15.  
  16. SymOptions    =    -sym Full
  17. SymOpt        =    {SymOptions}
  18. COptions    =    -r -opt off {SymOpt} -mbg full -mc68020
  19. # Must use the MPW CIncludes not Metrowerks, make '\n' work correctly for mpw
  20. PPCC        =    MWCPPC
  21. PPCCOptions    =    {SymOpt} -I "{CIncludes}"
  22. PPCLink        =    MWLinkPPC
  23.  
  24.  
  25. .c.x    ƒ    .c
  26.     {PPCC} {Default}.c -o {Default}.c.x {PPCCOptions}
  27.  
  28. #######################################################################
  29. # Build instructions and dependencies for the Count tool
  30. #
  31.  
  32. Count        ƒƒ    Count.c.x
  33.     {PPCLink} Count.c.x {SymOpt} -ft MPST -fc 'MPS ' ∂
  34.         "{MWPPCLibraries}"MWStdCRuntime.Lib ∂
  35.         "{MWPPCLibraries}"StdCLib ∂
  36.         "{MWPPCLibraries}"InterfaceLib ∂
  37.         "{PPCLibraries}"PPCToolLibs.o ∂
  38.          -o {Targ}
  39.     SetFile -m . -c . {Targ}
  40.  
  41. Count        ƒƒ    Count.rsrc
  42.     Echo "include ∂"{NewerDeps}∂";" | Rez -append -o {Targ} -t MPST -c 'MPS '
  43.     SetFile -m . -c . {Targ}
  44.  
  45. Count        ƒƒ    Count.Make
  46.     SetVersion -t 'vers' -i 1 -version "{VERSION}" {Targ}
  47.     SetFile -m . -d . -t MPST -c 'MPS ' {Targ}
  48.  
  49. #######################################################################
  50.  
  51. Count.rsrc    ƒƒ    Count.r GenericCFRG.r
  52.     Rez {NewerDeps} -o Count.rsrc -append -d APPNAME=∂"Count∂" -c 'RSED' -t rsrc
  53.  
  54. Count.rsrc    ƒƒ {OBJECTS}
  55.     Link -d -c 'RSED' -t rsrc {SymOpt} -mf ∂
  56.         {OBJECTS} ∂
  57.         "{CLibraries}"StdClib.o ∂
  58.         "{Libraries}"Stubs.o ∂
  59.         "{Libraries}"Runtime.o ∂
  60.         "{Libraries}"Interface.o ∂
  61.         "{Libraries}"ToolLibs.o ∂
  62.         "{Libraries}"IntEnv.o ∂
  63.         -o Count.rsrc
  64.